#ifndef __MATH__
#define __MATH__

#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <stdio.h>

#define INFTY 65535       //a number big enough to ensure NAN
#define ACCURACY 1e-12    //set the accuracy
#define ITERATION 100     //set iterate times

#define PI 3.1415926
#define E_ 2.718281828

#define MAX(a, b) ((a > b) ? a : b)
#define MIN(a, b) ((a > b) ? b : a)
#define SIGN(a) ((a >= 0) ? 1 : -1)

#define RADIAN(angle) angle / 180 * PI
#define ANGLE(radian) radian / PI * 180

typedef unsigned int u_int;

#endif